package cn.com.dycc.party_work.apply.entity;

import java.sql.Timestamp;
import java.util.Date;

import cn.com.dycc.common.page.TablePublicAttri;

public class UserAndApply extends TablePublicAttri {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7337287747392154281L;
	private String apply_id;
	private String user_id;
	private String dept_id;	//归属党组织ID
	private String certificate;
	private String sex;
	private String native_place; //籍贯
	private String education;	//学历
	private String apply_flag;	//申请标识
	private String apply_date;	
	private String sponsor;	//介绍人
	private String address;
	private String birthday;
	private String class_id;	//职务
	private String post_id;	//岗位
	private String tel_m;	//移动电话
	private String tel;	//固定电话
	private String remark;
	
	private String user_pic;
	
	private String account;			//用户账户
	private String username;		//用户姓名
	private String post_name;		//用户职务
	private String class_name;		//用户岗位
	private String dept_name;		//党组织名称
	private String opt_username;
	
	private String apply_flag_desc;
	private String sex_desc;
	private String education_desc;
	
	public UserAndApply(){
		
	}

	public UserAndApply(String state, String org_id, Timestamp create_date, String opt_user_id, String update_date,
			String update_user_id, String apply_id, String user_id, String dept_id, String certificate, String sex,
			String native_place, String education, String apply_flag, String apply_date, String sponsor, String address,
			String birthday, String class_id, String post_id, String tel_m, String tel, String remark,String user_pic, String account,
			String username, String post_name, String class_name, String dept_name, String opt_username,
			String apply_flag_desc, String sex_desc, String education_desc) {
		super(state, org_id, create_date, opt_user_id, update_date, update_user_id);
		this.apply_id = apply_id;
		this.user_id = user_id;
		this.dept_id = dept_id;
		this.certificate = certificate;
		this.sex = sex;
		this.native_place = native_place;
		this.education = education;
		this.apply_flag = apply_flag;
		this.apply_date = apply_date;
		this.sponsor = sponsor;
		this.address = address;
		this.birthday = birthday;
		this.class_id = class_id;
		this.post_id = post_id;
		this.tel_m = tel_m;
		this.tel = tel;
		this.remark = remark;
		this.user_pic = user_pic;
		this.account = account;
		this.username = username;
		this.post_name = post_name;
		this.class_name = class_name;
		this.dept_name = dept_name;
		this.opt_username = opt_username;
		this.apply_flag_desc = apply_flag_desc;
		this.sex_desc = sex_desc;
		this.education_desc = education_desc;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((apply_id == null) ? 0 : apply_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserAndApply other = (UserAndApply) obj;
		if (apply_id == null) {
			if (other.apply_id != null)
				return false;
		} else if (!apply_id.equals(other.apply_id))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "UserAndApply [apply_id=" + apply_id + ", user_id=" + user_id + ", dept_id=" + dept_id + ", certificate="
				+ certificate + ", sex=" + sex + ", native_place=" + native_place + ", education=" + education
				+ ", apply_flag=" + apply_flag + ", apply_date=" + apply_date + ", sponsor=" + sponsor + ", address="
				+ address + ", birthday=" + birthday + ", class_id=" + class_id + ", post_id=" + post_id + ", tel_m="
				+ tel_m + ", tel=" + tel + ", remark=" + remark+ ", user_pic=" + user_pic + ", account=" + account + ", username=" + username
				+ ", post_name=" + post_name + ", class_name=" + class_name + ", dept_name=" + dept_name
				+ ", opt_username=" + opt_username + ", apply_flag_desc=" + apply_flag_desc + ", sex_desc=" + sex_desc
				+ ", education_desc=" + education_desc + "]";
	}

	public String getApply_id() {
		return apply_id;
	}

	public void setApply_id(String apply_id) {
		this.apply_id = apply_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}

	public String getCertificate() {
		return certificate;
	}

	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getNative_place() {
		return native_place;
	}

	public void setNative_place(String native_place) {
		this.native_place = native_place;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getApply_flag() {
		return apply_flag;
	}

	public void setApply_flag(String apply_flag) {
		this.apply_flag = apply_flag;
	}

	public String getApply_date() {
		return apply_date;
	}

	public void setApply_date(String apply_date) {
		this.apply_date = apply_date;
	}

	public String getSponsor() {
		return sponsor;
	}

	public void setSponsor(String sponsor) {
		this.sponsor = sponsor;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getClass_id() {
		return class_id;
	}

	public void setClass_id(String class_id) {
		this.class_id = class_id;
	}

	public String getPost_id() {
		return post_id;
	}

	public void setPost_id(String post_id) {
		this.post_id = post_id;
	}

	public String getTel_m() {
		return tel_m;
	}

	public void setTel_m(String tel_m) {
		this.tel_m = tel_m;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getUser_pic(){
		return user_pic;
	}

	public void setUser_pic(String user_pic){
		this.user_pic = user_pic;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPost_name() {
		return post_name;
	}

	public void setPost_name(String post_name) {
		this.post_name = post_name;
	}

	public String getClass_name() {
		return class_name;
	}

	public void setClass_name(String class_name) {
		this.class_name = class_name;
	}

	public String getDept_name() {
		return dept_name;
	}

	public void setDept_name(String dept_name) {
		this.dept_name = dept_name;
	}

	public String getOpt_username() {
		return opt_username;
	}

	public void setOpt_username(String opt_username) {
		this.opt_username = opt_username;
	}

	public String getApply_flag_desc() {
		return apply_flag_desc;
	}

	public void setApply_flag_desc(String apply_flag_desc) {
		this.apply_flag_desc = apply_flag_desc;
	}

	public String getSex_desc() {
		return sex_desc;
	}

	public void setSex_desc(String sex_desc) {
		this.sex_desc = sex_desc;
	}

	public String getEducation_desc() {
		return education_desc;
	}

	public void setEducation_desc(String education_desc) {
		this.education_desc = education_desc;
	}
	
	

}
